package req

type AddUserDto struct {
	Nickname        string `json:"nickname" binding:"required"`
	Password        string `json:"password" binding:"required"`
	PasswordConfirm string `json:"password_confirm" binding:"required"`
	Mobile          string `json:"mobile" binding:"required,len=11,regexpV=^1[3-9]{1}\\d{9}$"`
}

// 编写一个用手机号+密码登录的结构体
type LoginByMobileDto struct {
	Mobile   string `json:"mobile" binding:"required,len=11,regexpV=^1[3-9]{1}\\d{9}$"`
	Password string `json:"password" binding:"required"`
}
